#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Program randomly spanks those monkeys that plagiarized Shakespeare."""
from random import choice

sucess_string = "YAY!!! We wasted a ton of computer cycles on some" \
"completely pointless endeavor! But at least we taught those virtual" \
"monkeys a lesson!"

def spank_them_monkeys():
    """Main monkey spanking action"""
    unspanked_monkeys = 1000000
    while unspanked_monkeys > 0:
        random_junk = get_random_string()
        # obviously if a monkey typed 'ouch', it must have been spanked
        # so mark off another monkey and display a message letting
        # people know of our progress
        if random_junk == 'ouch':
            unspanked_monkeys -= 1
            print "*SMACK* We spanked another monkey. Only", \
                unspanked_monkeys, "to go!"
    print sucess_string
    
chars = 'abcdefghijklmnopqrstuvwxyz'
def get_random_string():
    """Returns random string of 4 characters"""
    return "".join([choice(chars) for i in range(4)])

if __name__ == "__main__":
    spank_them_monkeys()
